<%--
  Created by IntelliJ IDEA.
  User: 25941
  Date: 2023/11/6
  Time: 16:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
    <title>显示文本框输入内容</title>
</head>
<body>
<form action="${pageContext.request.contextPath}/welcome.jsp">
    <c:if test="${empty param.num1}">
        name:<input type="text" name="num1">
        <input type="submit" value="submit"><br>
    </c:if>
    <c:if test="${not empty param.num1}">
        ${param.num1}<br>
    </c:if>
</form>
</body>
</html>
